const state = {
	shop: uni.getStorageSync('shop') || null,
}

const mutations = {
	SET_SHOP(state, shop) {
		state.shop = shop;
	}
}

const actions = {
	setShop({ commit, state }, shop) {
		commit('SET_SHOP', shop);
	}
}

export default {
	namespaced: true,
	state,
	mutations,
	actions
}